#ifndef SKYID_CONFIG_H 
#define SKYID_CONFIG_H

#include "common.h"

#define CONFIG_BUFFER_SIZE 0x200

namespace SkyID
{

class Config
{
public:
	uint32 windowWidth, windowHeight;
	bool hideCursor;

	Config(const char *configName = NULL);
	~Config();

private:
	bool parse(FILE *reader);
	bool getLine(FILE *reader, char *buffer, uint32 bufferLength);
	bool parseLine(const char *line, char *param, uint32 paramLength, char *value, uint32 valueLength);
	bool trimString(const char *str, uint32 strLength, char *buffer, uint32 bufferLength);
};

} // namespace SkyID

#endif // SKYID_CONFIG_H
